

<?php echo $this->Form->create('Evento',array('type'=>'file')); ?>
<?php
echo $this->Form->create('Document', array('enctype' => 'multipart/form-data'));
// OR
echo $this->Form->create('Document', array('type' => 'file'));


echo $this->Form->input('Document.submittedfile', array(
    'between' => '<br />',
    'type' => 'file'
));

// OR

echo $this->Form->file('Document.submittedfile');

$this->request->data['Document']['submittedfile'] = array(
    'name' => 'conference_schedule.pdf',
    'type' => 'application/pdf',
    'tmp_name' => 'C:/WINDOWS/TEMP/php1EE.tmp',
    'error' => 0,
    'size' => 41737,
);


?>